<?php include dirname(__FILE__).'/common/header.php'; ?>

<?php include dirname(__FILE__).'/common/menu.php'; ?>

var ctrlName = '<?php echo $ctrlName ?>';
var attr = <?php echo json_encode($attr) ?>;

attr.template_arr = [];
for(var i=0; i < attr.template_list.length; i++) {
  attr.template_arr.push([attr.template_list[i].template_id ,attr.template_list[i].template_name]);
}


/*
| -------------------------------------------------------------------
|  List Grid
| -------------------------------------------------------------------
*/
list.grid = new ZM.EditorGridPanel({
	url: list.baseUrl + ctrlName + '/getActivityUrlList',
	autoExpandColumn:'aeColumn',
	columns:[
  //  {header:'ID',dataIndex:'history_id',hidden: true},
    {header:'领取的url',dataIndex:'activity_url_content',width: 150},
    {header:'领取码',dataIndex:'activity_url_code',width: 150},
    {header:'活动名称',dataIndex:'activity_name'},
		{header:'粉丝ID',dataIndex:'customer_id',filter:{}},
    {header:'昵称',dataIndex:'nickname',filter:{}},
		{header:'金额',dataIndex:'history_money'},
		{header:'名称',dataIndex:'history_name',filter:{}},
		{header:'祝福语',dataIndex:'history_wish',id:'aeColumn',filter:{}},
		{header:'提供方名称',dataIndex:'history_support',width:150,filter:{}},
		//{header:'发红包人',dataIndex:'user_name'},
		{header:'状态',dataIndex:'activity_url_status',width:65,renderer:ZM.status},
		{header:'使用时间',dataIndex:'activity_url_time_use',width:140}
	]
});





<?php include dirname(__FILE__).'/common/layout.php'; ?>
list.grid.store.load();
<?php $includeEditor = true ?>
<?php include dirname(__FILE__).'/common/footer.php'; ?>
